using DC2010.Effects;
using DC2010.Objects.Base;
using DC2010.Objects.Data;
using DC2010;

public class I_PlaySound_Effect : EffectLogic
{
    // Methods
    public I_PlaySound_Effect(EffectData ed)
        : base(ed)
    {
        ShortName = "Play sound";
        LongName = "Plays a sound";
        Id = "I_PLAY_SOUND_EFFECT";
        EffectType = EffectType.Instant;
    }

    public override void Instant(BaseObject aInvoker, BaseObject aTarget)
    {
        string pSoundId = Data.Params.Find(A => A.Key == "SOUND_ID").Value;
        if (!string.IsNullOrEmpty(pSoundId))
        {
            Root.I.SoundQueue.AddToQueue(pSoundId);
        }
    }
}

 
